package com.chat.mapper;

import com.chat.entity.UserJoinRoomForm;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * UserJoinRoomMapper
 */
public interface UserJoinRoomFormMapper {
    void postJoinRoom(UserJoinRoomForm userJoinRoomForm);

    void judgeForm(@Param(value = "result") int result,@Param(value = "id") int id,@Param(value = "approverId")int approverId);

    Integer getSuccessfulCount(@Param(value = "roomId") int roomId,@Param(value = "userId") int userId);

    UserJoinRoomForm selectFormById(int id);

    List<UserJoinRoomForm> selectFormsByRoom(@Param(value = "roomId")int roomId);
}
